import NetWorkTool from "./netWorkTool.js"

/**
 * 获取菜单
 */
export function getMenu(ars) {
	return NetWorkTool.GET('/api/sys-department/getMenu', ars,false);
}

/**
 * 获取角色树形菜单
 * parentId
 */
export function getRoles(parentId) {
	return NetWorkTool.GET(`/api/sys-department/getMenuById/${parentId}`, parentId,false);
}